package com.bl.weilan.dao.repository;

import com.bl.weilan.dao.model.TradeAEntity;
import com.bl.weilan.dao.model.TradeCEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by liangweikang on 19/7/14.
 */
public interface TradeCRepository extends JpaRepository<TradeCEntity, String> {
   List<TradeCEntity> findByTradeBOrderByWeightDesc(String id);
   Page<TradeCEntity> findByTradeBOrderByWeightDesc(String id, Pageable pageable);

   TradeCEntity findByName(String fullName);
}
